<template>
  <el-tabs type="border-card" class="demo-tabs">
    <el-tab-pane>
      <template #label>
        <span>
          <el-icon><calendar /></el-icon>全部商品
        </span>
      </template>
      <el-tabs
        :tab-position="tabPosition"
        style="height: 200px"
        class="demo-tabs"
      >
        <el-tab-pane label="全部">
          <div class="nav">
            <ul>
              <li>综合</li>
              <li>销量</li>
              <li>价格</li>
              <li>新品</li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="item in list" :key="item.goodsId" @click="fn">
              <div class="box">
                <div class="img">
                  <img src="../../../assets/images/2.png" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>{{ item.qty }}+人付款</span>
                </p>
                <p>上架时间：{{ item.stime }}</p>
                <p>已售：{{ item.sold }}件</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">
                  盈利：<span class="box1">{{
                    item.sold * item.goodsSale
                  }}</span
                  >元
                </p>
              </div>
            </li>
          </ul>
        </el-tab-pane>
        <el-tab-pane label="鞋子">
          <div class="nav">
            <ul>
              <li>综合</li>
              <li>销量</li>
              <li>价格</li>
              <li>新品</li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="item in list2" :key="item.goodsId" @click="fn">
              <div class="box">
                <div class="img">
                  <img src="../../../assets/images/2.png" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>{{ item.qty }}+人付款</span>
                </p>
                <p>上架时间：{{ item.stime }}</p>
                <p>已售：{{ item.sold }}件</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">
                  盈利：<span class="box1">{{
                    item.sold * item.goodsSale
                  }}</span
                  >元
                </p>
              </div>
            </li>
          </ul></el-tab-pane
        >
        <el-tab-pane label="服装">
          <div class="nav">
            <ul>
              <li>综合</li>
              <li>销量</li>
              <li>价格</li>
              <li>新品</li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="item in list3" :key="item.goodsId" @click="fn">
              <div class="box">
                <div class="img">
                  <img src="../../../assets/images/2.png" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>{{ item.qty }}+人付款</span>
                </p>
                <p>上架时间：{{ item.stime }}</p>
                <p>已售：{{ item.sold }}件</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">
                  盈利：<span class="box1">{{
                    item.sold * item.goodsSale
                  }}</span
                  >元
                </p>
              </div>
            </li>
          </ul></el-tab-pane
        >
        <el-tab-pane label="箱包">
          <div class="nav">
            <ul>
              <li>综合</li>
              <li>销量</li>
              <li>价格</li>
              <li>新品</li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="item in list4" :key="item.goodsId" @click="fn">
              <div class="box">
                <div class="img">
                  <img src="../../../assets/images/2.png" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>{{ item.qty }}+人付款</span>
                </p>
                <p>上架时间：{{ item.stime }}</p>
                <p>已售：{{ item.sold }}件</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">
                  盈利：<span class="box1">{{
                    item.sold * item.goodsSale
                  }}</span
                  >元
                </p>
              </div>
            </li>
          </ul></el-tab-pane
        >
        <el-tab-pane label="配件">
          <div class="nav">
            <ul>
              <li>综合</li>
              <li>销量</li>
              <li>价格</li>
              <li>新品</li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="item in list5" :key="item.goodsId" @click="fn">
              <div class="box">
                <div class="img">
                  <img src="../../../assets/images/2.png" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>{{ item.qty }}+人付款</span>
                </p>
                <p>上架时间：{{ item.stime }}</p>
                <p>已售：{{ item.sold }}件</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">
                  盈利：<span class="box1">{{
                    item.sold * item.goodsSale
                  }}</span
                  >元
                </p>
              </div>
            </li>
          </ul></el-tab-pane
        >
        <el-tab-pane label="玩具">
          <div class="nav">
            <ul>
              <li>综合</li>
              <li>销量</li>
              <li>价格</li>
              <li>新品</li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="item in list6" :key="item.goodsId" @click="fn">
              <div class="box">
                <div class="img">
                  <img src="../../../assets/images/2.png" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>{{ item.qty }}+人付款</span>
                </p>
                <p>上架时间：{{ item.stime }}</p>
                <p>已售：{{ item.sold }}件</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">
                  盈利：<span class="box1">{{
                    item.sold * item.goodsSale
                  }}</span
                  >元
                </p>
              </div>
            </li>
          </ul></el-tab-pane
        >
      </el-tabs>
    </el-tab-pane>
    <el-tab-pane label="待提交">
      <el-tabs
        :tab-position="tabPosition"
        style="height: 200px"
        class="demo-tabs"
      >
        <el-tab-pane label="全部">
          <div class="nav">
            <ul>
              <li>编辑时间</li>
              <li></li>
              <li></li>
              <li></li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="item in list" :key="item.goodsId" @click="fn">
              <div class="box">
                <div class="img">
                  <img src="../../../assets/images/2.png" alt="" />
                  <img src="../../../assets/images/3.png" class="img2" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>0人付款</span>
                </p>
                <p>上架时间：</p>
                <p>已售：</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">盈利：<span class="box1"> </span></p>
              </div>
            </li>
          </ul>
        </el-tab-pane>
        <el-tab-pane label="鞋子">
          <div class="nav">
            <ul>
              <li>编辑时间</li>
              <li></li>
              <li></li>
              <li></li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="item in list2" :key="item.goodsId" @click="fn">
              <div class="box">
                <div class="img">
                  <img src="../../../assets/images/2.png" alt="" />
                  <img src="../../../assets/images/3.png" class="img2" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>0人付款</span>
                </p>
                <p>上架时间：</p>
                <p>已售：</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">盈利：<span class="box1"> </span></p>
              </div>
            </li>
          </ul>
        </el-tab-pane>
        <el-tab-pane label="服装">
          <div class="nav">
            <ul>
              <li>编辑时间</li>
              <li></li>
              <li></li>
              <li></li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="item in list3" :key="item.goodsId" @click="fn">
              <div class="box">
                <div class="img">
                  <img src="../../../assets/images/2.png" alt="" />
                  <img src="../../../assets/images/3.png" class="img2" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>0人付款</span>
                </p>
                <p>上架时间：</p>
                <p>已售：</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">盈利：<span class="box1"> </span></p>
              </div>
            </li></ul
        ></el-tab-pane>
        <el-tab-pane label="箱包">
          <div class="nav">
            <ul>
              <li>编辑时间</li>
              <li></li>
              <li></li>
              <li></li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="item in list4" :key="item.goodsId" @click="fn">
              <div class="box">
                <div class="img">
                  <img src="../../../assets/images/2.png" alt="" />
                  <img src="../../../assets/images/3.png" class="img2" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>0人付款</span>
                </p>
                <p>上架时间：</p>
                <p>已售：</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">盈利：<span class="box1"> </span></p>
              </div>
            </li></ul
        ></el-tab-pane>
        <el-tab-pane label="配件">
          <div class="nav">
            <ul>
              <li>编辑时间</li>
              <li></li>
              <li></li>
              <li></li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="item in list5" :key="item.goodsId" @click="fn">
              <div class="box">
                <div class="img">
                  <img src="../../../assets/images/2.png" alt="" />
                  <img src="../../../assets/images/3.png" class="img2" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>0人付款</span>
                </p>
                <p>上架时间：</p>
                <p>已售：</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">盈利：<span class="box1"> </span></p>
              </div>
            </li></ul
        ></el-tab-pane>
        <el-tab-pane label="玩具">
          <div class="nav">
            <ul>
              <li>编辑时间</li>
              <li></li>
              <li></li>
              <li></li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="item in list6" :key="item.goodsId" @click="fn">
              <div class="box">
                <div class="img">
                  <img src="../../../assets/images/2.png" alt="" />
                  <img src="../../../assets/images/3.png" class="img2" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>0人付款</span>
                </p>
                <p>上架时间：</p>
                <p>已售：</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">盈利：<span class="box1"> </span></p>
              </div>
            </li></ul
        ></el-tab-pane>
      </el-tabs>
    </el-tab-pane>
    <el-tab-pane label="商品审核"
      ><el-tabs
        :tab-position="tabPosition"
        style="height: 200px"
        class="demo-tabs"
      >
        <el-tab-pane label="全部">
          <div class="nav">
            <ul>
              <li>审核时间</li>
              <li>审核中</li>
              <li>审核失败</li>
              <li>审核通过</li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="(item, index) in list" :key="item.goodsId">
              <div class="box">
                <div class="img">
                  <img :src="url[index]" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>0人付款</span>
                </p>
                <p>上架时间：{{ item.stime }}</p>
                <p>已售：{{ item.shenhe == "审核通过" ? item.sold : "" }}</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">
                  盈利：<span class="box1">
                    {{
                      item.shenhe == "审核通过"
                        ? item.sold * item.goodsSale + ""
                        : ""
                    }}</span
                  >{{ item.shenhe == "审核通过" ? item.yuan : "" }}
                </p>
              </div>
            </li>
          </ul>
        </el-tab-pane>
        <el-tab-pane label="鞋子">
          <div class="nav">
            <ul>
              <li>综合</li>
              <li>销量</li>
              <li>价格</li>
              <li>新品</li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="(item, index) in list2" :key="item.goodsId">
              <div class="box">
                <div class="img">
                  <img :src="url[index]" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>0人付款</span>
                </p>
                <p>上架时间：{{ item.stime }}</p>
                <p>已售：{{ item.shenhe == "审核通过" ? item.sold : "" }}</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">
                  盈利：<span class="box1">
                    {{
                      item.shenhe == "审核通过"
                        ? item.sold * item.goodsSale + ""
                        : ""
                    }}</span
                  >{{ item.shenhe == "审核通过" ? item.yuan : "" }}
                </p>
              </div>
            </li>
          </ul>
        </el-tab-pane>
        <el-tab-pane label="服装">
          <div class="nav">
            <ul>
              <li>综合</li>
              <li>销量</li>
              <li>价格</li>
              <li>新品</li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="(item, index) in list3" :key="item.goodsId">
              <div class="box">
                <div class="img">
                  <img :src="url[index]" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>0人付款</span>
                </p>
                <p>上架时间：{{ item.stime }}</p>
                <p>已售：{{ item.shenhe == "审核通过" ? item.sold : "" }}</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">
                  盈利：<span class="box1">
                    {{
                      item.shenhe == "审核通过"
                        ? item.sold * item.goodsSale + ""
                        : ""
                    }}</span
                  >{{ item.shenhe == "审核通过" ? item.yuan : "" }}
                </p>
              </div>
            </li>
          </ul></el-tab-pane
        >
        <el-tab-pane label="箱包">
          <div class="nav">
            <ul>
              <li>综合</li>
              <li>销量</li>
              <li>价格</li>
              <li>新品</li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="(item, index) in list4" :key="item.goodsId">
              <div class="box">
                <div class="img">
                  <img :src="url[index]" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>0人付款</span>
                </p>
                <p>上架时间：{{ item.stime }}</p>
                <p>已售：{{ item.shenhe == "审核通过" ? item.sold : "" }}</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">
                  盈利：<span class="box1">
                    {{
                      item.shenhe == "审核通过"
                        ? item.sold * item.goodsSale + ""
                        : ""
                    }}</span
                  >{{ item.shenhe == "审核通过" ? item.yuan : "" }}
                </p>
              </div>
            </li>
          </ul></el-tab-pane
        >
        <el-tab-pane label="配件">
          <div class="nav">
            <ul>
              <li>综合</li>
              <li>销量</li>
              <li>价格</li>
              <li>新品</li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="(item, index) in list5" :key="item.goodsId">
              <div class="box">
                <div class="img">
                  <img :src="url[index]" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>0人付款</span>
                </p>
                <p>上架时间：{{ item.stime }}</p>
                <p>已售：{{ item.shenhe == "审核通过" ? item.sold : "" }}</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">
                  盈利：<span class="box1">
                    {{
                      item.shenhe == "审核通过"
                        ? item.sold * item.goodsSale + ""
                        : ""
                    }}</span
                  >{{ item.shenhe == "审核通过" ? item.yuan : "" }}
                </p>
              </div>
            </li>
          </ul></el-tab-pane
        >
        <el-tab-pane label="玩具">
          <div class="nav">
            <ul>
              <li>综合</li>
              <li>销量</li>
              <li>价格</li>
              <li>新品</li>
            </ul>
            <el-input
              class="nav2"
              placeholder="请输入搜索内容"
              resize="horizontal"
            >
              <template #suffix>
                <el-button type="primary" round="true" class="nav3"
                  >搜索</el-button
                >
              </template>
              <template #prefix>
                <el-icon :size="22"><search /></el-icon>
              </template>
            </el-input>
          </div>
          <ul>
            <li v-for="(item, index) in list6" :key="item.goodsId">
              <div class="box">
                <div class="img">
                  <img :src="url[index]" alt="" />
                </div>
                <h4>{{ item.goodsName }}</h4>
                <p>
                  <span>￥{{ item.goodsSale }}</span
                  ><span>0人付款</span>
                </p>
                <p>上架时间：{{ item.stime }}</p>
                <p>已售：{{ item.shenhe == "审核通过" ? item.sold : "" }}</p>
                <p>剩余库存：{{ item.stock }}件</p>
                <p class="box2">
                  盈利：<span class="box1">
                    {{
                      item.shenhe == "审核通过"
                        ? item.sold * item.goodsSale + ""
                        : ""
                    }}</span
                  >{{ item.shenhe == "审核通过" ? item.yuan : "" }}
                </p>
              </div>
            </li>
          </ul></el-tab-pane
        >
      </el-tabs></el-tab-pane
    >
    <el-tab-pane label="已上架">已上架</el-tab-pane>
    <el-tab-pane label="已下架">已下架</el-tab-pane>
    <el-tab-pane label="库存为零">库存为零</el-tab-pane>
    <el-tab-pane label="上架商品">上架商品</el-tab-pane>
    <el-tab-pane label="下架商品">下架商品</el-tab-pane>
    <el-tab-pane label="发放优惠券">发放优惠券</el-tab-pane>
  </el-tabs>
</template>

<script>
import { ref, onMounted } from "vue";
import service from "../../../mock/nick";

import { ElTabs, ElTabPane, ElIcon, ElInput } from "element-plus";
// import { log } from "console";

export default {
  setup() {
    const list = ref([]);
    const list2 = ref([]);
    const list3 = ref([]);
    const list4 = ref([]);
    const list5 = ref([]);
    const list6 = ref([]);
    const url = ref([]);
    const tabPosition = ref("top");
    //     https://s4.ax1x.com/2022/02/24/bF1QQ1.png
    // https://s4.ax1x.com/2022/02/24/bF1dSA.png

    console.log(list2);

    // let imgData = ref([
    //   { img: require("@/assets/images/5.png"), goodsId: 1 },
    //   { img: require("@/assets/images/4.png"), goodsId: 2 },
    //   { img: require("@/assets/images/6.png"), goodsId: 3 },
    // ]);

    onMounted(async () => {
      let res = await service.getDate();
      console.log(res.data.data);
      // imgData.value.forEach((item) => {
      //   res.data.data.forEach((item1) => {
      //     if (item1.shenhe === "审核通过") {
      //       if (item.goodsId == item1.goodsId) {
      //         imgData.value.img = require("@/assets/images/5.png");
      //         item.goodsName = item1.goodsName;
      //         item.goodsSale = item1.goodsSale;
      //         item.qty = item1.qty;
      //         item.shenhe = item1.shenhe;
      //         item.sold = item1.sold;
      //         item.stime = item1.stime;
      //         item.stock = item1.stock;
      //       }
      //     } else if (item1.shenhe === "审核失败") {
      //       if (item.goodsId == item1.goodsId) {
      //         item.goodsName = item1.goodsName;
      //         item.goodsSale = item1.goodsSale;
      //         item.qty = item1.qty;
      //         item.shenhe = item1.shenhe;
      //         item.sold = item1.sold;
      //         item.stime = item1.stime;
      //         item.stock = item1.stock;
      //       }
      //     }
      //   });
      // });
      // console.log(imgData.value);

      list.value = res.data.data;
      list2.value = res.data.data.slice(0, 21);
      list3.value = res.data.data.slice(20, 41);
      list4.value = res.data.data.slice(40, 61);
      list5.value = res.data.data.slice(60, 81);
      list6.value = res.data.data.slice(80, 101);
      list.value.forEach((item) => {
        if (item.shenhe == "审核通过") {
          const img1 = " https://s4.ax1x.com/2022/02/24/bF1QQ1.png";
          url.value.push(img1);
        } else if (item.shenhe == "审核中") {
          const img2 = " https://s4.ax1x.com/2022/02/25/bkz1Vf.png";
          url.value.push(img2);
        } else if (item.shenhe == "审核失败") {
          const img3 = "https://s4.ax1x.com/2022/02/24/bF1dSA.png";
          url.value.push(img3);
        }
        // console.log(url);
      });
    });

    return {
      list,
      list2,
      list3,
      list4,
      list5,
      list6,
      tabPosition,
      url,
      // imgData,
    };
  },

  components: {
    ElTabs,
    ElTabPane,
    ElIcon,
    ElInput,
  },
};
</script>

<style lang="less" scoped>
.demo-tabs > .el-tabs__content {
  background-color: #f4f5f7;
  color: #6b778c;
  font-size: 32px;
  font-weight: 600;
}
/deep/.el-main {
  background: #f5f5f5;
}
.el-radio-group {
  display: flex;
  justify-content: center;
  align-items: center;
}
.el-tabs--right .el-tabs__content,
.el-tabs--left .el-tabs__content {
  height: 100%;
}
.el-radio-group {
  margin-bottom: 0px !important;
  min-width: 1200px;
}
/deep/.el-radio-button {
  width: 128px;
  height: 43px;
  border-radius: 10px 10px 0px 0px;
  text-align: center;
  line-height: 43px;
}
/deep/.el-radio-button__inner {
  font-size: 12px;
  border: 0px;
  padding: 0;
  background: #f5f5f5;
}
.el-tabs {
  width: 100%;
  height: 3220px !important;
  background: #ffffff;
  border-radius: 40px;
  ul {
    display: flex;
    justify-content: left;
    align-items: left;
    flex-wrap: wrap;
    min-width: 944px;
    li {
      width: 15.7%;
      height: 380px;
      background: #f5f5f5;
      border-radius: 10px;
      margin-left: 10px;
      margin-top: 10px;

      .box {
        width: 95%;
        height: 95%;
        margin: 7px auto;
        p {
          font-size: 12px;
          padding: 7px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          .box1 {
            font-size: 12px;
            color: #ff0000;
          }
        }
        .box2 {
          display: block;
        }
        .img {
          position: relative;
          width: 100%;
          height: 45%;
          border-radius: 10px;
          img {
            width: 100%;
            height: 105%;
            margin: 0;
          }
          .img2 {
            width: 50%;
            height: 50%;
            position: absolute;
            left: -9px;
            top: 3px;
          }
        }

        h4 {
          font-size: 12px;
          font-weight: normal;
          padding: 16px;
        }
      }
    }
    li.active {
      background: #00adff;
    }
  }
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    margin-right: 20px;
    .nav2 {
      width: 25%;
    }
    .nav3 {
      width: 50px;
      height: 31px;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #00adff;
      color: #fff;
      margin-right: -10px;
    }
    ul {
      margin-left: 30px;

      li {
        width: 100px;
        height: 12px;
        background: #fff;
      }
    }
  }
}
/deep/.el-tabs__item {
  width: 16%;
  padding-left: 65px !important;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  text-align: center;
}

.is-focus {
  background: #00adff !important;
}

/deep/.is-top {
  padding-left: 20px !important;
}

.el-tabs--border-card {
  border: 0px solid #f5f5f5;
  box-shadow: 0 0px 0px 0 #f5f5f5;
}
/deep/.el-tabs__content {
  border-radius: 30px;
}
</style>
